import SvgIcon from './SvgIcon/index.vue'
import Pagination from './Pagination/index.vue'

//引入element-plus提供的全局图标组件
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

console.log("element:--", ElementPlusIconsVue)
//全局导入组件
const allGloableComponent: any = { SvgIcon, Pagination }

export default {
  install(app: any) {
    Object.keys(allGloableComponent).forEach(key => {
      app.component(key, allGloableComponent[key]);
    })
    //将elment-plus全局进行注册
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component)
    }
  }
}


